package chapte04.de;

class Animal16{
    public void shout(){
        System.out.println("喵喵喵.....");
    }
}
class Dog2 extends Animal16{
    public void shout(){
        System.out.println("汪汪汪.......");
    }
    public void eat(){
        System.out.println("吃骨头......");
    }
}
public class Example16 {
    public static void main(String[] args) {
        Animal16 an = new Dog2();
        Dog2 dog2 = (Dog2) an;
        dog2.shout();
        dog2.eat();
    }
}
